/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dispositivos;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 *
 * @author 66880717
 */
public class Teclado implements Dispositivo{

    @Override
    public String leer(String... ruta) {
        String resultado = "";
      BufferedReader br;
        try {
            
            br = new BufferedReader( new InputStreamReader(System.in));
            String line;
            
            while ((line = br.readLine())!=null) {
                resultado += line;
            }
                
            } catch (IOException ex) {               
               ex.printStackTrace(System.err);
            }
        return resultado;
            
        
        }
    }
    

